jun.Auditstore = Ext.extend(Ext.data.JsonStore, {
    constructor: function (cfg) {
        cfg = cfg || {};
        jun.Auditstore.superclass.constructor.call(this, Ext.apply({
            storeId: 'AuditStoreId',
            url: 'Audit',
            root: 'results',
            totalProperty: 'total',
            fields: [
                {name: 'audit_id'},
                {name: 'tgl'},
                {name: 'doc_ref'},
                {name: 'tdate'},
                {name: 'user_id'},
                {name: 'bruto'},
                {name: 'disc'},
                {name: 'discrp'},
                {name: 'ketdisc'},
                {name: 'vat'},
                {name: 'totalpot'},
                {name: 'total'},
                {name: 'customer_id'},
                {name: 'bank_id'},
                {name: 'doc_ref_sales'},
            ]
        }, cfg));
    }
});
jun.rztAudit = new jun.Auditstore();

jun.Sales2Auditstore = Ext.extend(Ext.data.JsonStore, {
    constructor: function (cfg) {
        cfg = cfg || {};
        jun.Sales2Auditstore.superclass.constructor.call(this, Ext.apply({
            storeId: 'Sales2AuditstoreId',
            url: 'Audit/GetSalesTrans',
            root: 'results',
            totalProperty: 'total',
            fields: [
                {name: 'salestrans_id'},
                {name: 'doc_ref'},
                {name: 'no_customer'},
                {name: 'nama_customer'},
                {name: 'nama_bank'},
                {name: 'total', type: 'float'}
            ]
        }, cfg));
    }
});
jun.rztSales2Audit = new jun.Sales2Auditstore();
//jun.rztAudit.load();
